package com.example.rabbitmqconsumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ClassName TopicManReceiver
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/20 14:47
 * @Version 1.2
 **/
/*@Component
@RabbitListener(queues = "topic.man")*/
public class TopicManReceiver {

    @RabbitHandler
    public void process(Map testMessage) {
        System.out.println("TopicManReceiver消费者收到消息  : " + testMessage.toString());
    }

}
